﻿using System;
using System.ComponentModel.DataAnnotations;

namespace WomanMotion.WebApi.Model.Dtos.Users
{
	/// <summary>
	/// 密码修改DTO
	/// </summary>
	public class UpdateUserPwdDTO
	{
        /// <summary>
        /// 主键ID
        /// </summary>
        [Required(ErrorMessage = "主键ID不能为空")]
        public long Id { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        [MaxLength(16, ErrorMessage = "密码不能大于16个字符")]
        [MinLength(6, ErrorMessage = "密码不能小于6个字符")]
        public string? Password { get; set; }
    }
}

